package ch.six4rty.doodle.data
{
	/**
	 * User Data Object
	 * @author Tiago Dias [six4rty.ch, Switzerland]
	 */
	
	public class CommentData
	{
		public var _id					:int;
		public var _userName			:String;
		public var _userID				:String;
		public var _timeStamp			:String;
		public var _comment				:String;
		
		namespace doodleNS 				= "http://doodle.com/xsd1";
		
		/**
		 * 
		 * @param xml
		 * 
		 */		
		public function CommentData( xml:XML )
		{
			use namespace doodleNS;
			
			_id							= xml.id;
			_userName					= xml.who;
			_userID						= xml.userId;
			_timeStamp					= xml.when;
			_comment					= xml.what;	
		}
	}
}